<template>
  <div class="aui-card-list">
  <uni-list-query-card :queryShow="queryShow" @query-click="getDataList()" @click="(e)=>{this.queryShow=e}" @searchReset="searchReset()">
    <el-col :span="6">
        <el-form-item label="类型">
          <el-select v-model="dataForm.auditType">
                <el-option :label="$t('pwdAudit.noinitPassword')" :value="1"></el-option>
                <el-option :label="$t('pwdAudit.simplepassword')" :value="2"></el-option>
                <el-option :label="$t('pwdAudit.passwordModify')" :value="3"></el-option>
                <el-option :label="$t('pwdAudit.longAbsence')" :value="4"></el-option>
                <el-option :label="$t('pwdAudit.all')" :value="0"></el-option>
              </el-select>
        </el-form-item>
      </el-col>
  </uni-list-query-card>
    <el-card shadow="never" class="aui-card-list-body">
      <vxe-toolbar :setting="{immediate:true}">
        <template v-slot:tools>
          <el-button icon="el-icon-refresh" @click="getDataList()" circle></el-button>
        </template>
      </vxe-toolbar>
      <div class="mod-sys__menu">
        <vxe-table v-loading="dataListLoading" :data="dataList" ref="xTable" auto-resize remote-sort @sort-change="dataListSortChangeHandle"
          class="vxe-table-element">
          <vxe-table-column type="index" width="50" fixed="left" align="center">
          </vxe-table-column>
          <vxe-table-column field="username" title="pwdAudit.username" width="150">
            <template slot-scope="scope">
              <span>{{ scope.row.realName }}({{ scope.row.username }})</span>
            </template>
          </vxe-table-column>
          <vxe-table-column field="deptName" title="pwdAudit.deptName" width="120" align="center"></vxe-table-column>
          <vxe-table-column field="auditResult" title="pwdAudit.auditResult"></vxe-table-column>
          <vxe-table-column field="createDate" title="pwdAudit.createDate" width="140" align="center">
          </vxe-table-column>
          <vxe-table-column field="pwdDate" title="pwdAudit.pwdDate" width="140" align="center"></vxe-table-column>
          <vxe-table-column field="loginDate" title="pwdAudit.loginDate" width="140" align="center"></vxe-table-column>
        </vxe-table>
        <el-pagination :current-page="page" :page-sizes="[10, 20, 50, 100]" :page-size="limit" :total="total" layout="total, sizes, prev, pager, next, jumper"
          @size-change="pageSizeChangeHandle" @current-change="pageCurrentChangeHandle">
        </el-pagination>
        <!-- 弹窗, 发送短信 -->
      </div>
    </el-card>
  </div>
</template>
<script>
import mixinViewModule from '@/mixins/view-module'
export default {
  mixins: [mixinViewModule],
  data () {
    return {
      mixinViewModuleOptions: {
        getDataListURL: '/sys/safetyAudit/pwdAudit/page',
        exportURL: '/sys/safetyAudit/pwdAudit/export',
        getDataListIsPage: true,
        deleteIsBatch: true
      },
      dataForm: {
        auditType: 0
      }
    }
  },
  methods: {}
}
</script>
